# Makefile do basicTerrain
# Rafael M. Savelli - savelli@tecgraf.puc-rio.br
#
APPNAME = swap

CC = gcc

CXX = g++

CFLAGS = -Wall -pipe -march=i686 -fcheck-new -static-libgcc 

DEBUGFLAGS = -O0 -g -ggdb -ftest-coverage 

LIBS = -lglut

SRC = main.cpp

OBJ = main.o

all: 
	$(CXX) $(INCLUDEDIR) $(CXXFLAGS) -c $(SRC)
	$(CXX) $(LIBDIR) $(CXXFLAGS) $(LIBS) -o $(APPNAME) $(OBJ)
	
debug:
	$(CXX) $(INCLUDEDIR) $(DEBUGFLAGS) $(CXXFLAGS) -DDEBUG -c $(SRC)
	$(CXX) $(LIBDIR) $(CXXFLAGS) $(LIBS) -o $(APPNAME) $(OBJ)

clean:
	\rm -fr $(OBJ) $(APPNAME) *.bb *.bbg *.gcov
